<%@ page import="User.MessageDTO" %>
<%@ page import="User.UserDTO" %>
<%--
  Created by IntelliJ IDEA.
  User: huashuowei
  Date: 2019/5/2
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="bean" scope="page" class="User.UserDTO"/>
<html lang="en">
<head>
    <style>
        html { width:100%; height:100%; }
        body { background:#fff; font-size:18px; font-family:"Arial", "Tahoma", "微软雅黑", "雅黑";
            line-height:18px; padding:0; margin:0; text-align:center; }
        div { padding:18px }
        img { border:0px; vertical-align:middle; padding:0px; margin:0px; }
        input, button { font-family:"Arial", "Tahoma", "微软雅黑", "雅黑"; border:0;
            vertical-align:middle; margin:8px; line-height:18px; font-size:18px }
        .btns { width:143px; height:40px; background:url("images/bg11.jpg") no-repeat left top; color:#FFF; }
    </style>
    <title>PERSONAL</title>
    <link href="css/personalStyle.css" rel='stylesheet' type='text/css'/>

    <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Roboto+Condensed:300,400" rel="stylesheet">
    <link href="css/popuo-box.css" rel="stylesheet" type="text/css" media="all" />

    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Accessible Profile Widget Responsive Widget,Login form widgets, Sign up Web forms , Login signup Responsive web form,Flat Pricing table,Flat Drop downs,Registration Forms,News letter Forms,Elements" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <script src="js/jquery.min.js"></script>
    <script>$(document).ready(function(c) {
        $('.alert-close').on('click', function(c){
            $('.main-agile').fadeOut('slow', function(c){
                $('.main-agile').remove();
            });
        });
    });
    </script>
</head>
<body>
<%
    String name=null;
    String email=null;
    String phone=null;
    String img=null;
    MessageDTO messageDTO=(MessageDTO)request.getSession().getAttribute("LocalUser");
    if(messageDTO!=null)
    {
        name=messageDTO.getname();
        email=messageDTO.gete_mail();
        phone=messageDTO.getPhone();
        img=messageDTO.getimg();
    }
%>
<h1>My Information</h1>
<div class="main-agileits">
    <div class="right-wthree">
        <a><img src="images/<%=img %>" style="height:130px;width:130px;" /></a>

        <h2><%=name %></h2>
        <p>DGUT Student</p>
    </div>
    <div class="left-w3ls">
        <ul class="address">
            <li>
                <ul class="address-text">
                    <li><b>PHONE </b></li>
                    <li>: <%=phone %></li>
                </ul>
            </li>

            <li>
                <ul class="address-text">
                    <li><b>E-MAIL </b></li>
                    <li><a href="mailto:example@mail.com">: <%=email %></a></li>
                </ul>
            </li>

        </ul>

    </div>

    <div class="clear"></div>

</div>
<div>
    <input type="submit" class="btns" onmouseover="this.style.backgroundPosition='left -40px'"
           onmouseout="this.style.backgroundPosition='left top'" value="Logout"  onclick="window.location.href='./logout'"/>
    <input type="submit" class="btns" onmouseover="this.style.backgroundPosition='left -40px'"
           onmouseout="this.style.backgroundPosition='left top'" value="上传照片" onclick="window.location.href='./upload.jsp'"/>

</div>

</body>
</html>



